package com.cjl.designpattern.singleton.compare;

public class Lazy2 {

    private Lazy2(){
        System.out.println("Lazy2.Lazy2");
    }

    public static Lazy2 getInstance(){
        return LazyHolder.INSTANCE;
    }
    private static class LazyHolder{
        private static final Lazy2 INSTANCE = new Lazy2();
    }
}
